package com.choosefine.it.cprivilege.service;

import com.choosefine.it.base.dto.PageDTO;
import com.choosefine.it.cprivilege.dao.ExcelProcessMapper;
import com.choosefine.it.cprivilege.model.ExcelProcessLog;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Comments：说明
 * Author：
 * Create Date：2017/3/11
 * Modified By：
 * Modified Date：
 * Why & What is modified：
 * Version：v1.0
 */
@Service
public class ExcelProcessService {
    @Autowired
    ExcelProcessMapper excelProcessMapper;

    public Page<ExcelProcessLog> getExcelProcessLog(PageDTO pageDTO) {
        PageHelper.startPage(pageDTO.getPageNum(),pageDTO.getPageSize());
        return excelProcessMapper.getExcelProcessLog();
    }
}
